package com.test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class test1 {
    public static void main(String[] args) throws ParseException {
        System.out.println((12&0x1) == 1);
        System.out.println(7+'0');
        int[] input = new int[]{7,6,5,4,3,2,1};
        Arrays.stream(input).sorted();
        for(int a : input){
            System.out.print(a+" ");
        }
        System.out.println();
        HashSet<Character> set = new HashSet<Character>();
        set.add('a');
        set.add('b');
        set.add('a');
        set.add('a');
        set.add('a');

        for(char r : set){
            System.out.print(r+" ");
        }

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        long big = sdf.parse("2021-08-24").getTime();
        long small = sdf.parse("2019-08-24").getTime();
        int day=(int) ((big - small) / (1000 * 60 * 60 * 24));
        System.out.println("相差的天数："+day);

    }
}
